package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) CrontabLogList(ctx context.Context, req *system.CrontabLogListReq) (res *system.CrontabLogListRes, err error) {
	res = new(system.CrontabLogListRes)
	err = service.SystemCrontab().CrontabTaskLogs(ctx, req.Id, req.Date)
	return
}
